package fr.umlv.android.caveAvin.sqlite;

import java.util.Date;

import fr.umlv.android.caveAVin.beans.Bottle;
import fr.umlv.android.caveAVin.beans.User;
import fr.umlv.android.caveAVin.beans.WineCellar;

public class InitBDD {
	
	public static void run () {
		
	 UserBDD.insertUser(new User("lounes", "lounes", "lounes@mail.fr"));
	 
	 UserBDD.insertUser(new User("mathieu", "mathieu", "mathieu@mail.fr"));
	 
	 UserBDD.insertUser(new User("admin", "admin", "admin@mail.fr"));
	 
	 WineCellarBDD.insertWineCellar(new WineCellar("MaCave1","2,Rue Edman Adam","16000","ALGIERS","ALGERIA","07/04/2011",10,0),1);
	 
	 WineCellarBDD.insertWineCellar(new WineCellar("MaCave2","54,Rue Dalmart","75008","PARIS","FRANCE","15/08/2009",20,0),1);
	
	 BottleBDD.insertBottle(new Bottle("designation1", "producerName1", "denomination1", "vintype1", "contentAlcohol1"," vinorigin1", "latitude1", "longitude1", "countryorigin1", "capacity1"," color1", "vinspecification1", "grapeharvestyears1", "maturationperiod1"));
	
	 BottleBDD.insertBottle(new Bottle("designation1", "producerName1", "denomination1", "vintype1", "contentAlcohol1"," vinorigin1", "latitude1", "longitude1", "countryorigin1", "capacity1"," color1", "vinspecification1", "grapeharvestyears1", "maturationperiod1"));

	 BottleBDD.insertBottle(new Bottle("designation1", "producerName1", "denomination1", "vintype1", "contentAlcohol1"," vinorigin1", "latitude1", "longitude1", "countryorigin1", "capacity1"," color1", "vinspecification1", "grapeharvestyears1", "maturationperiod1"));

	 Date date = new Date();
	 
	 BottleWineCellarBDD.insertBottleWineCellar(1, 1, date.toString());
	 BottleWineCellarBDD.insertBottleWineCellar(1, 2, date.toString());
	
	}

}
